Skip to content

feat: add UP ruff rule and fix lint errors#461

Open
maxrabin wants to merge 1 commit intoaws:mainfrom
maxrabin:feat/add-up-ruff-rule
Open

feat: add UP ruff rule and fix lint errors#461
maxrabin wants to merge 1 commit intoaws:mainfrom
maxrabin:feat/add-up-ruff-rule

Conversation

@maxrabin
Copy link

Description

Added one line "UP" to the ruff lint rules, which implements "pyupgrade" to modernize the syntax of the code to the current supported version (Python 3.10).

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Performance improvement
  • Code refactoring

I'm marking this as breaking change because if it could have run on Python versions below 3.10 (I didn't check if its supported) then for sure now it won't work.

Testing

  • Unit tests pass locally
  • Integration tests pass (if applicable)
  • Test coverage remains above 80%
  • Manual testing completed

Checklist

  • My code follows the project's style guidelines (ruff/pre-commit)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Security Checklist

  • No hardcoded secrets or credentials
  • No new security warnings from bandit
  • Dependencies are from trusted sources
  • No sensitive data logged

Breaking Changes

List any breaking changes and migration instructions:

N/A

Additional Notes

Add any additional notes or context about the PR here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants